#pragma once

#include "driver/uart.h"

#define RS485_1DEPIN        27
#define RS485_1RXPIN        14
#define RS485_1TXPIN        12
#define RS4851_UARTNUM      UART_NUM_1

#define RS485_2DEPIN        4
#define RS485_2RXPIN        16
#define RS485_2TXPIN        17
#define RS4852_UARTNUM      UART_NUM_2

void Rs485SendData(uint8_t Rs485C, uart_port_t uart_num, const void *src, size_t size);
void Rs485Interface_task(void *pvParameters) ;